package com.xtourms.server.db;

// Generated 2011-4-17 16:04:01 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Ticketstatus generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ticketstatus", catalog = "xtourms")
public class Ticketstatus implements java.io.Serializable {

	private Integer ticketStatusId;
	private Ticket ticket;
	private String ticketStatusType;
	private int ticketBasePrice;
	private int ticketSellPrice;
	private int ticketActualPrice;
	private Date ticketStatusStartDate;
	private Date ticketStatusEndDate;
	private int lastmodifyWorker;
	private Date lastmodifyTime;

	public Ticketstatus() {
	}

	public Ticketstatus(Ticket ticket, String ticketStatusType,
			int ticketBasePrice, int ticketSellPrice, int ticketActualPrice,
			Date ticketStatusStartDate, Date ticketStatusEndDate,
			int lastmodifyWorker, Date lastmodifyTime) {
		this.ticket = ticket;
		this.ticketStatusType = ticketStatusType;
		this.ticketBasePrice = ticketBasePrice;
		this.ticketSellPrice = ticketSellPrice;
		this.ticketActualPrice = ticketActualPrice;
		this.ticketStatusStartDate = ticketStatusStartDate;
		this.ticketStatusEndDate = ticketStatusEndDate;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "TICKET_STATUS_ID", unique = true, nullable = false)
	public Integer getTicketStatusId() {
		return this.ticketStatusId;
	}

	public void setTicketStatusId(Integer ticketStatusId) {
		this.ticketStatusId = ticketStatusId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TICKET_ID", nullable = false)
	public Ticket getTicket() {
		return this.ticket;
	}

	public void setTicket(Ticket ticket) {
		this.ticket = ticket;
	}

	@Column(name = "TICKET_STATUS_TYPE", nullable = false, length = 3)
	public String getTicketStatusType() {
		return this.ticketStatusType;
	}

	public void setTicketStatusType(String ticketStatusType) {
		this.ticketStatusType = ticketStatusType;
	}

	@Column(name = "TICKET_BASE_PRICE", nullable = false)
	public int getTicketBasePrice() {
		return this.ticketBasePrice;
	}

	public void setTicketBasePrice(int ticketBasePrice) {
		this.ticketBasePrice = ticketBasePrice;
	}

	@Column(name = "TICKET_SELL_PRICE", nullable = false)
	public int getTicketSellPrice() {
		return this.ticketSellPrice;
	}

	public void setTicketSellPrice(int ticketSellPrice) {
		this.ticketSellPrice = ticketSellPrice;
	}

	@Column(name = "TICKET_ACTUAL_PRICE", nullable = false)
	public int getTicketActualPrice() {
		return this.ticketActualPrice;
	}

	public void setTicketActualPrice(int ticketActualPrice) {
		this.ticketActualPrice = ticketActualPrice;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TICKET_STATUS_START_DATE", nullable = false, length = 10)
	public Date getTicketStatusStartDate() {
		return this.ticketStatusStartDate;
	}

	public void setTicketStatusStartDate(Date ticketStatusStartDate) {
		this.ticketStatusStartDate = ticketStatusStartDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "TICKET_STATUS_END_DATE", nullable = false, length = 10)
	public Date getTicketStatusEndDate() {
		return this.ticketStatusEndDate;
	}

	public void setTicketStatusEndDate(Date ticketStatusEndDate) {
		this.ticketStatusEndDate = ticketStatusEndDate;
	}

	@Column(name = "LASTMODIFY_WORKER", nullable = false)
	public int getLastmodifyWorker() {
		return this.lastmodifyWorker;
	}

	public void setLastmodifyWorker(int lastmodifyWorker) {
		this.lastmodifyWorker = lastmodifyWorker;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LASTMODIFY_TIME", length = 19)
	public Date getLastmodifyTime() {
		return this.lastmodifyTime;
	}

	public void setLastmodifyTime(Date lastmodifyTime) {
		this.lastmodifyTime = lastmodifyTime;
	}

}
